package com.wrupple.muba.catalogs.client.events;

import com.google.gwt.event.shared.GwtEvent;
import com.wrupple.muba.catalogs.client.activity.process.impl.ForeignKeyFilterSelectionProcessImpl.FilterSelection;

public class NewFilterSelectionEvent extends
		GwtEvent<NewFilterSelectionEventHandler> {
	
	private final FilterSelection filterSelection;
	
	public NewFilterSelectionEvent(FilterSelection filterSelection) {
		super();
		this.filterSelection = filterSelection;
	}

	public static final Type<NewFilterSelectionEventHandler> TYPE = new Type<NewFilterSelectionEventHandler>();

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<NewFilterSelectionEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(NewFilterSelectionEventHandler handler) {
		handler.onNewFilterSelected(this);
	}

	public FilterSelection getFilterSelection() {
		return filterSelection;
	}

}
